/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Beans;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author Alex
 */
public class Actores {
    
        private String idactor;//atributo
	private String nombreactor;//atributo
	private String sexoactor;//atributo
        private String rolactor;//atributo
        

	//construye los objetos
	public  static Actores load(ResultSet rs)throws SQLException
	{
		Actores actores = new Actores();
		actores.setIdactor(rs.getString(1));
		actores.setNombreactor(rs.getString(2));
		actores.setSexoactor(rs.getString(3));
                actores.setRolactor(rs.getString(4));
                return actores;
	}
	//metodos modificadores
	public void setIdactor(String ia){
		idactor=ia;
	}
	public void setNombreactor(String na){
		nombreactor=na;
	}
	public void setSexoactor(String sa){
		sexoactor=sa;
	}

    public String getRolactor() {
        return rolactor;
    }

    public void setRolactor(String rol) {
        this.rolactor = rol;
    }
        
       	//metodos analizadores

    public String getIdactor() {
        return idactor;
    }

    public String getNombreactor() {
        return nombreactor;
    }

    public String getSexoactor() {
        return sexoactor;
    }
    
}
